package com.yumeng.example.test.service;


import com.yumeng.common.api.PageData;
import com.yumeng.example.test.dto.page.TestPageDto;
import com.yumeng.example.test.entity.Test;
import com.yumeng.framework.core.base.service.BaseService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author wxd
 * @date 2021/8/27 23:06
 */
public interface ExampleTestService extends BaseService<Test> {

    void doTest();

    boolean testExecute(Integer type);

    Object testQuery(Integer type);

    PageData<Test> getTestPageList(TestPageDto dto, int type);

    Test getOneTest(Long testId);


    boolean insertBatch();
    boolean updateBatchIds();

    boolean logicDeleteById(Long id);
    @Transactional
    boolean logicDeleteBatchIds(List<Long> ids);
    boolean logicDelete();
    boolean logicDeleteByMap();

    boolean testVersion(Integer type);
}
